<template>
	<view class="quan">
		<view class="core_list" v-for="(item,index) in fenlei" :key="index" @click="coreBtn(item.id)">
					<view class="core_name" >{{item.title}}</view>
					<image class="right" src="/static/right.png"></image>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fenlei:[],
			}
		},
		onLoad() {
			uni.request({
					url: 'http://tuiguang.yiyunoto.com/api/index/articletype',
					method:'POST',
					headers:{authtoken:this.$store.state.token},
					success: (res) => {
					console.log(res);
					this.fenlei=res.data.data
					},
					fail:(res)=>{
						console.log("请求失败",res)
					}
				});
		},
		methods: {
			coreBtn(e){
				console.log(e)
				uni.navigateTo({
					url:"../learn_details/learn_details?id="+e
				})
			}
		}
	}
</script>

<style lang="less">
.quan{
	width:100%;
	height: 100vh;
	background:#f5f4f9;
}
.core_list{
		width: 100%;
		height: 80upx;
		border-bottom: #ededed solid 1upx;
		box-sizing: border-box;
		background: #FFFFFF;
	}
	.core_name{
		width: 60%;
		float: left;
		font-size:30upx ;
		color: #656565;
		line-height: 80upx;
		padding-left: 30upx;
		box-sizing: border-box;
	}
	.right{
		width:25upx;
		height: 40upx;
		line-height: 80upx;
		float: right;
		padding-top: 20upx;
		padding-right: 35upx;
		// box-sizing: border-box;
	}
</style>
